package com.jason.common.vo;


public class CommonReturnType {

    private String status;
    private Object data;

    public static CommonReturnType builder(Object data){
        return new CommonReturnType("success",data);
    }

    public static CommonReturnType success(){
        return new CommonReturnType("success",null);
    }

    public static CommonReturnType builder(String status, Object data){

        return new CommonReturnType(status, data);
    }
    public CommonReturnType(String status, Object data) {
        this.status = status;
        this.data = data;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
